Node-RED block in Snap4City Microservice library node-red-contrib-snap4city-user is "remove-delegation-my-device">

It allows to delete a delegation from a device.

Inputs

A JSON with these parameters:
id string
the nome of the device (you MUST have the ownership of the device)
contextbroker string
the contextbroker of the device
delegationId string
id of the delegation to be deleted. you can retrieve the id of the delegation from the get-delegation-my-device

An example of the JSON array filled with correct data to delete a user delegation:

{
"id": "nameDevice",
"contextbroker": "contextbroker",
"delegationId": "delegationId"
}
    

Outputs

Returns an object containing the result of operation

Details

The node can receive a JSON with the parameters described in the Inputs section and with them generate the output JSON. If the values are not present in the input JSON, these are read by those in the configuration. If they are not present in either part, an error is generated for the necessary parameters.